package com.tgu.home_action.service;

import com.tgu.home_action.pojo.Family;
import com.tgu.home_action.pojo.OldMan;
import com.tgu.home_action.pojo.ResponseData;
import org.springframework.validation.annotation.Validated;

import java.util.List;

@Validated
public interface OldManService {
    /**
     * 插入老人信息
     *
     * @return
     */
    ResponseData<OldMan> insertOldMan(OldMan oldMan, Family familyUser);

    /**
     * 查询老人信息
     */
    ResponseData<List<OldMan>> getOldMen(Family familyUser);

    /**
     * 更改老人信息
     */
    ResponseData<Object> updateOldMan(OldMan oldMan, Family familyUser);

    /**
     * 删除老人信息
     */
    ResponseData<Object> deleteOldMan(int oldManId, Family familyUser);
}
